package com.crm.manager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.crm.common.core.domain.R;
import com.crm.manager.domain.Business;
import com.crm.manager.domain.BusinessRecord;
import com.crm.manager.domain.dto.BatchDTO;
import com.crm.manager.domain.dto.BusinessDTO;
import com.crm.manager.domain.dto.BusinessPageDTO;
import com.crm.manager.domain.vo.BusinessVO;
import com.crm.manager.domain.vo.PageVO;

import java.util.List;
import java.util.Map;

public interface BusinessService extends IService<Business> {
    void add(Business business);

    PageVO pageQuery(BusinessPageDTO dto);

    BusinessVO getBusinessDetail(Integer id);


    void addRecord(BusinessDTO dto);

    List<BusinessRecord> getRecordListById(Integer businessId);

    void moveToPool(Integer id, String reason);

    PageVO poolPageQuery(BusinessPageDTO dto);

    void gain(BatchDTO dto);

    void assignment(BatchDTO dto);

    void changeContract(Integer id, Map map);
}
